package com.service.base.generator.app.config;


import com.service.base.generator.gencore.dbconfig.po.IColumnType;

import java.time.OffsetDateTime;

/**
 * 获取实体类字段属性类信息接口扩展类
 * @author wangyongkun
 * @create 2020/12/13
 */
public  enum  DbColumnTypeExt implements IColumnType {
    // java8 新时间类型
    OFFSET_DATE_TIME("OffsetDateTime", OffsetDateTime.class.getCanonicalName());

    /**
     * 类型
     */
    private final String type;

    /**
     * 包路径
     */
    private final String pkg;

    DbColumnTypeExt(final String type, final String pkg) {
        this.type = type;
        this.pkg = pkg;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getPkg() {
        return pkg;
    }
}
